Update documentation: cargo does not build src/bin/*.rs when toml contains [[bin]]
authorJustin Charette <charetjc@gmail.com>
Sun, 14 May 2017 21:33:33 +0000 (17:33 -0400)
committerJustin Charette <charetjc@gmail.com>
Sun, 14 May 2017 21:34:52 +0000 (17:34 -0400)
Signed-off-by: Justin Charette <charetjc@gmail.com>
src/doc/manifest.md

index 29ee4026254e021f5e5a1a158f751d2fb3545d0b..b3484e58e2bb36c17acab746fc6fc02d2b9b69be 100644 (file)
@@ -443,7 +443,11 @@ Most of the time workspaces will not need to be dealt with as `cargo new` and
 If your project is an executable, name the main source file `src/main.rs`. If it
 is a library, name the main source file `src/lib.rs`.
 
-Cargo will also treat any files located in `src/bin/*.rs` as executables.
+Cargo will also treat any files located in `src/bin/*.rs` as executables.  Do
+note, however, once you add a `[[bin]]` section ([see
+below](#configuring-a-target)), Cargo will no longer automatically build files
+located in `src/bin/*.rs`.  Instead you must create a `[[bin]]` section for
+each file you want to build.
 
 Your project can optionally contain folders named `examples`, `tests`, and
 `benches`, which Cargo will treat as containing examples,